package com.yeban.javase.day01.test01;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/10/9
 *
 * 银行账户类
 */
//1、封装一个银行账户类Account，里面有账户id、户主姓名、户主身份证号、户主电话、户主邮箱5个属性，私有化这些属性并提供对应的get以及set方法，并在AccountTest测试类中测试。
public class Account {

    private int accountId;
    private String name;
    private long identityCardNumber;
    private long phoneNumber;
    private String email;

    public Account() {
    }

    public Account(int accountId, String name, long identityCardNumber, long phoneNumber, String email) {
        this.accountId = accountId;
        this.name = name;
        this.identityCardNumber = identityCardNumber;
        this.phoneNumber = phoneNumber;
        this.email = email;
    }

    public int getAccountId() {
        return accountId;
    }

    public void setAccountId(int accountId) {
        this.accountId = accountId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public long getIdentityCardNumber() {
        return identityCardNumber;
    }

    public void setIdentityCardNumber(long identityCardNumber) {
        this.identityCardNumber = identityCardNumber;
    }

    public long getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(long phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}
